Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add delegation store to custom staking middleware #303

Merged
merged 21 commits into from
Dec 22, 2023

Conversation

RustNinja
Copy link
Collaborator

add delegation store to custom staking middleware

@faddat
Copy link
Contributor

faddat commented Dec 20, 2023

Is this PR ready for review? If not, could you please mark it as a draft? It's how I track e'm :)

thanks :)!

@RustNinja
Copy link
Collaborator Author

Is this PR ready for review? If not, could you please mark it as a draft? It's how I track e'm :)

thanks :)!

absolutely. need to move it to draft. thanks. w

@RustNinja RustNinja marked this pull request as draft December 20, 2023 19:47
x/stakingmiddleware/keeper/keeper.go Fixed Show fixed Hide fixed
custom/staking/module.go Fixed Show fixed Hide fixed
x/stakingmiddleware/keeper/keeper.go Fixed Show fixed Hide fixed
custom/staking/module.go Fixed Show fixed Hide fixed
custom/staking/module.go Fixed Show fixed Hide fixed
custom/staking/module.go Fixed Show fixed Hide fixed
custom/staking/module.go Fixed Show fixed Hide fixed
println("Validator Address: ", delegation.ValidatorAddress)
fmt.Println("Amount", delegation.Amount.Amount)

msgDelegate := stakingtypes.MsgDelegate{DelegatorAddress: delegation.DelegatorAddress, ValidatorAddress: delegation.ValidatorAddress, Amount: delegation.Amount}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stakingtypes.MsgDelegate could panic. and it is a problem.

@RustNinja RustNinja marked this pull request as ready for review December 22, 2023 21:04
@RustNinja RustNinja merged commit d326978 into stakingmiddleware-module Dec 22, 2023
5 of 8 checks passed
custom/staking/keeper/keeper.go Dismissed Show dismissed Hide dismissed
custom/staking/keeper/keeper.go Dismissed Show dismissed Hide dismissed
custom/staking/keeper/keeper.go Dismissed Show dismissed Hide dismissed
custom/staking/keeper/keeper.go Dismissed Show dismissed Hide dismissed
custom/staking/abci.go Dismissed Show dismissed Hide dismissed
custom/staking/module.go Dismissed Show dismissed Hide dismissed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants